package org.future.persistent.table;

/**
 * 数据库字段信息
 * @author dycc
 * @date 2009-12-30 下午05:51:17
 */
public class DBField {
    // 数据库中的字段名称
    private String name;
    // databean中对应的属性名称
    private String propertyName;
    // 数据库中字段类型
    private int sqlType;
    
    /////////////////////////////////////////////////////
    
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getPropertyName() {
        return propertyName;
    }
    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName;
    }
    public int getSqlType() {
        return sqlType;
    }
    public void setSqlType(int sqlType) {
        this.sqlType = sqlType;
    }
    
    /**
     * toString
     */
    public String toString(){
        StringBuffer  sb = new StringBuffer();
        sb.append("[");
        sb.append("name=" + getName() + ",");
        sb.append("propertyName=" + getPropertyName() + ",");
        sb.append("sqlType=" + getSqlType());
        sb.append("]");
        return sb.toString();
    }
}
